package com.byedu.mapper.course;

import com.byedu.domain.course.WeiXinUserDO;
import org.springframework.stereotype.Repository;

/**
 * Created by jason on 2017/5/14.
 */
@Repository
public interface WeiXinUserMapper {

    /**
     * @description 保存
     * @author chenxigui
     * @date  2017-05-14
     * @param weiXinUserDO
     * @return
     */
    void saveWeiXinUser(WeiXinUserDO weiXinUserDO);

    /**
     * @description 更新
     * @author chenxigui
     * @date  2017-05-14
     * @param weiXinUserDO
     * @return
     */
    int updateWeiXinUserbyOpenId(WeiXinUserDO weiXinUserDO);

    /**
     * @description 更新
     * @author chenxigui
     * @date  2017-05-14
     * @param weiXinUserDO
     * @return
     */
    int updateWeiXinUserbyUserId(WeiXinUserDO weiXinUserDO);

    /**
     * @description 查询用户
     * @author chenxigui
     * @date  2017-05-14
     * @param openId
     * @return
     */
    WeiXinUserDO getWeiXinUserByOpenId(String openId);



    /**
     * @description 查询用户
     * @author chenxigui
     * @date  2017-05-14
     * @param userId
     * @return
     */
    WeiXinUserDO getWeiXinUserByUserId(String userId);

}
